package com.ruoyi.cms.domain.bo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 幻灯片业务对象 cms_slide
 *
 * @author guorui
 * @date 2023-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CmsSlideBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 站点ID
     */
//    @NotNull(message = "站点ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long siteId;

    /**
     * 站点模块ID
     */
    @NotNull(message = "站点模块ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long modId;

    /**
     * 幻灯片标题
     */
    @NotBlank(message = "幻灯片标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 幻灯片名称
     */
    @NotBlank(message = "幻灯片名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 1可用，0禁用
     */
    @NotNull(message = "1可用，0禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 备注
     */
    private String remark;

}
